import { _decorator, Component, Label } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('DeskInfo')
export class DeskInfo extends Component {
    @property({
        type: Label,
        tooltip: "标题"
    })
    title: Label

    @property({
        type: Label,
        tooltip: "房间号"
    })
    deskNo: Label

    @property({
        type: Label,
        tooltip: "局数"
    })
    juShu: Label

    @property({
        type: Label,
        tooltip: "底分"
    })
    diFen: Label

    // start() {
    //
    // }

    updateTitle(title: string) {
        this.title.string = title
    }

    updateDeskNo(deskNo: string) {
        this.deskNo.string = deskNo
    }

    updateJuShu(juShu: string) {
        this.juShu.string = juShu
    }

    updateDiFen(diFen: string) {
        this.diFen.string = diFen
    }
}


